package com.koron.housing.contract.bean.po;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.koron.bean.base.BaseBean;
import com.koron.housing.excel.HousingContractConvertor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 合同信息(HousingContract)表实体类
 *
 * @author jzp
 * @since 2022-03-07
 */
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "合同信息", description = "HousingContract")
public class HousingContract extends BaseBean {

    /**
     * 编号
     */
    @ExcelProperty(value = "合同编号", index = 1)
    @ApiModelProperty("编号")
    private String code;

    /**
     * 框架合同开始日期
     */
    @DateTimeFormat("yyyy-MM-dd HH:mm")
    @ExcelProperty(value = "框架合同开始日期", index = 5)
    @ApiModelProperty("框架合同开始日期")
    private Date frameStartTime;

    /**
     * 框架合同结束日期
     */
    @DateTimeFormat("yyyy-MM-dd HH:mm")
    @ExcelProperty(value = "框架合同结束日期", index = 6)
    @ApiModelProperty("框架合同结束日期")
    private Date frameEndTime;

    /**
     * 财务报销编号
     */
    @ExcelProperty(value = "财务报销编号", index = 0)
    @ApiModelProperty("财务报销编号")
    private String billCode;

    /**
     * 承租方
     */
    @ExcelProperty(value = "承租方", index = 2)
    @ApiModelProperty("承租方")
    private String tenantry;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址", index = 4)
    @ApiModelProperty("地址")
    private String address;

    /**
     * 经度
     */
    @ApiModelProperty("经度")
    private String longitude;

    /**
     * 纬度
     */
    @ApiModelProperty("纬度")
    private String latitude;

    /**
     * 小区
     */
    @ExcelProperty(value = "小区", index = 3)
    @ApiModelProperty("小区")
    private String village;

    /**
     * 收款方
     */
    @ApiModelProperty("收款方")
    private String payee;

    /**
     * 收款方分行名称
     */
    @ApiModelProperty("收款方分行名称")
    private String payeeBank;

    /**
     * 其他信息
     */
    @ApiModelProperty("其他信息")
    private String other;

    /**
     * 状态，housing_status
     */
    @ExcelProperty(value = "状态", index = 8, converter = HousingContractConvertor.class)
    @ApiModelProperty("状态，housing_contract_status")
    private String status;

}

